const process = require('process')
const path = require('path')
const fs = require('fs')

const jsFileName = process.argv[1];
const args = process.argv.slice(2);
const bundleName = args[0];
const jsFilePath = path.dirname(jsFileName);

const hotVersionJsonPath = path.normalize(jsFilePath + `/../CreatorProj/assets/${bundleName}/hotVersion.json`);

const data = fs.readFileSync(hotVersionJsonPath, 'utf8');

console.log(JSON.parse(data).version)

